package Test;

public class Test01 {



    public static void main(String[] args) {
        MySingleList mySingleList = new MySingleList();
        mySingleList.creatList();
        mySingleList.display();
        System.out.println("==========");
        mySingleList.display2(mySingleList.head);
        System.out.println();
        mySingleList.display3();


        //System.out.println(mySingleList.contains(12));

        //System.out.println(mySingleList.size());

        System.out.println("====测试尾插====");
        mySingleList.addLast(10);
        mySingleList.addLast(11);
        mySingleList.addLast(11);
        mySingleList.addLast(11);


        mySingleList.display();

        System.out.println("================");
        mySingleList.addIndex(0,88);
        mySingleList.display();

        System.out.println("===========");
        mySingleList.remove(99);
        mySingleList.display();

        System.out.println("=================");
        mySingleList.removeAllKey(11);
        mySingleList.display();

        System.out.println("================");
        mySingleList.display();
        MySingleList.ListNode ret = mySingleList.reverseList();
        mySingleList.display(ret);

        System.out.println("==================");

    }
}
